package cn.itsource.hrm.service.impl;

import cn.itsource.hrm.service.IPreCreateOrderService;
import cn.itsource.hrm.vo.PreCreateOrderData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PreCreateOrderServiceImpl implements IPreCreateOrderService {
    @Autowired
    private RedisTemplate redisTemplate;
    @Override
    public List<PreCreateOrderData> list() {
        Long userId = 13L;
        String hashKey = "killCoursePreCreateOrder"+userId;
        return redisTemplate.opsForHash().values(hashKey);
    }
}
